package com.example.foodsy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 节点企业信息表	
 * </p>
 *
 * @author cgc
 * @since 2025-09-23
 */
@Getter
@Setter
@TableName("company_info")
@ApiModel(value = "CompanyInfo对象", description = "节点企业信息表	")
public class CompanyInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("节点企业编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("登录编码")
    @TableField("login_code")
    private String loginCode;

    @ApiModelProperty("登录密码")
    @TableField("login_password")
    private String loginPassword;

    @ApiModelProperty("企业节点名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("节点类型：	1：养殖企业；	2：屠宰企业；	3：批发商；	4：零售商")
    @TableField("type")
    private Integer type;

    @ApiModelProperty("所在省编号")
    @TableField("prov_id")
    private Integer provId;

    @ApiModelProperty("所在市编号")
    @TableField("city_id")
    private Integer cityId;

    @ApiModelProperty("企业地址")
    @TableField("address")
    private String address;

    @ApiModelProperty("营业执照代码")
    @TableField("business_id")
    private String businessId;

    @ApiModelProperty("法定代表人")
    @TableField("corporation")
    private String corporation;

    @ApiModelProperty("联系电话")
    @TableField("phone")
    private String phone;

    @ApiModelProperty("注册日期")
    @TableField("reg_date")
    private LocalDate regDate;

    @ApiModelProperty("备注")
    @TableField("remarks")
    private String remarks;
}
